]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid: Only animate visible icons
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 31 Aug 2019 15:32:31 +0000 (12:32 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 13 Sep 2019 15:33:45 +0000 (15:33 +0000)
commit413c677fcf192d438fc2da9fc579fdb96a62f816
tree23e42f98ac6ac5e090ed1561a1c351843b2b4e63
parent3d86e6e791a9e59af3248445a2682cbfe20c60b8
iconGrid: Only animate visible icons

Mutter recently added an optimization to only allocate
visible children [1]. That broke ClutterClones, but it
was subsequently fixed [2].

However, that exposed a third problem, this time with
FrequentView: visible but transparent icons, that are
not allocated by the icon grid, were cloned and animated
during the spring animation.

Only animate visible icons with opacity greater than 0.

[1] https://gitlab.gnome.org/GNOME/mutter/commit/0eab73dc
[2] https://gitlab.gnome.org/GNOME/mutter/commit/08a3cbfc

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/696
js/ui/iconGrid.js